package www.core.com.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import www.core.com.Enum.BookEnum;
@Entity
@Table(name="sysbook")
public class Book extends BaseCode {

	@Column(columnDefinition = "char(20)")
	private String name;
	
	private BookEnum status;
	@Column
	private Integer like;
	@Column(columnDefinition = "char(200)")
	private String  description;
	@Column(columnDefinition = "char(20)")
	private String author;
	@Column
	private float price;
	
	@OneToOne
	@JoinColumn(name = "labelId")
	private Label label;
	
	public Label getLabel() {
		return label;
	}
	public void setLabel(Label label) {
		this.label = label;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public BookEnum getStatus() {
		return status;
	}
	public void setStatus(BookEnum status) {
		this.status = status;
	}
	public Integer getLike() {
		return like;
	}
	public void setLike(Integer like) {
		this.like = like;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	
}
